x86: flush high xstate CPUID sub-leaves to zero
authorJan Beulich <jbeulich@suse.com>
Thu, 2 Jun 2016 07:40:08 +0000 (09:40 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 2 Jun 2016 07:40:08 +0000 (09:40 +0200)
commit75cb0a1325d1b65fd64591a07e8476d5cfabba01
tree90418679098fc12f184163771cbab83eba6813cf
parent7e81d992b183c47a74eea5ecd613d27950b5cdc3
x86: flush high xstate CPUID sub-leaves to zero

In line with other recent changes, these should be fully white listed,
requiring us to zero them until they obtain a meaning we support.

Without XSAVE support, all xstate sub-leaves should be zero.

Also move away from checking host XSAVE support - we really ought to
consider the guest flag for that purpose.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/traps.c